package ch4;

import javax.servlet.*;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionIdListener;

public class Mylistener02 implements
        ServletContextAttributeListenerListener, ServletRequestAttributeListener, HttpSessionAttributeListener {



    @Override
    public void attributeAdded(ServletRequestAttributeEvent srae) {
        System.out.println("ServletRequest对象新增了属性"+srae.getName());
    }

    @Override
    public void attributeAdded(ServletContextAttributeEvent srae) {
        System.out.println("ServletContext对象新增了属性"+srae.getName());
    }



    @Override
    public void attributeAdded(HttpSessionBindingEvent se) {
        System.out.println("HttpSession对象新增了属性"+se.getName());
    }

}
